
import { getRequest, postRequest } from "../utils/request.js" //引用request

// 下单模特
export const addOrder = data => postRequest(`/order/add`, data);

// 获取订单编号
export const getOrderNum = data => getRequest(`/order/getSn`, data);

// 获取拼单编号
export const getSplicingOrderNum = data => getRequest(`/order/getSplicingSn`, data);

// 获取订单列表
export const getOrderList = data => getRequest(`/order/list`, data);

// 获取订单详情
export const getOrderDetail = data => getRequest(`/order/info`, data);

// 获取订单分享
export const getOrderShare = data => getRequest(`/order/infoBySn`, data);

// 获取订单详情
export const postOrderRepay = data => postRequest(`/order/repay`, data);

// 模特接单
export const getOrderNow = data => postRequest(`/order/agree`, data);

// 模特拒单
export const rejectOrderNow = data => postRequest(`/order/reject`, data);

// 模特删除订单
export const delOrderNow = data => postRequest(`/order/modelDel`, data);

// 客户删除订单
export const evaDelOrder = data => postRequest(`/order/userDel`, data);

// 模特核销订单
export const writeOffOrderNow = data => postRequest(`/order/checkQrCode`, data);

// 客户评价订单
export const evaOrderNow = data => postRequest(`/order/evaluate`, data);






